<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of NewProduct
 *
 * @author Lawrence
 */
class NewProduct extends CWidget{
    
    public function run(){
        $product = Product::model()->findAll(array(
            'condition' => '',
            'limit' => '6'
        ));
        
        if ($product !== null){
            $this->render('NewProduct', array(
                'newProducts' => $product,
            ));
        }
    }
}

?>
